package cn.yyh.serviceOrg.utils;

import cn.yyh.commons.exception.MyException;
import org.springframework.util.ObjectUtils;


/**
 * @author 杨永航
 * @version 1.0
 * @Title: IsNullUtil
 * @Package: cn.yyh.user.utils
 * @date 2021/7/4
 */
public class JudgeUtil {

    public static void isNull(Object...obj){
        for (Object temp : obj) {
            if (ObjectUtils.isEmpty(temp)) {
                throw new MyException("数据有误,请重新输入!");
            }
        }
    }
}
